package casa.depesos.app.com.activity;

import android.content.Intent;
import android.os.Bundle;

import androidx.annotation.Nullable;

import casa.depesos.app.com.databinding.ActivityMeBinding;
import casa.depesos.app.com.utils.Utils;

public class MeActivity extends BaseActivity {

    ActivityMeBinding binding;

    @Override
    protected boolean needPadding() {
        return false;
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = ActivityMeBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());
        binding.top.back.setOnClickListener(v -> finish());
        binding.top.title.setText("Mi perfil");
        binding.top.top.setPadding(0, Utils.getStatusBarHeight(this), 0, 0);

        binding.frame0.setOnClickListener(v -> {
            Intent i = new Intent(MeActivity.this, InfoActivity.class);
            i.putExtra("from", 1);
            startActivity(i);
        });

        binding.frame1.setOnClickListener(v -> {
            Intent i = new Intent(MeActivity.this, WorkActivity.class);
            i.putExtra("from", 1);
            startActivity(i);
        });

        binding.frame2.setOnClickListener(v -> {
            Intent i = new Intent(MeActivity.this, TouchActivity.class);
            i.putExtra("from", 1);
            startActivity(i);
        });
        binding.frame3.setOnClickListener(v -> {
            Intent i = new Intent(MeActivity.this, CardSureActivity.class);
            i.putExtra("from", 1);
            startActivity(i);
        });
    }
}
